package com.wn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/ddd")
public class myController {
    public myController() {
        System.out.println("myController.myController");
    }

    @RequestMapping("/test1")
    public String test1(){
        Thread thread = Thread.currentThread();

        System.out.println(thread.getName());
        System.out.println("myController.test1");
        return "aa";
    }
    @RequestMapping("/test2")
    @ResponseBody
    public String test2(){
        System.out.println("myController.test2");
        return "aa";
    }

    @PostMapping("/test3")
    @ResponseBody
    public String test3(){
        System.out.println("myController.test3");
        return "aa";
    }
    @GetMapping("/test4")
    @ResponseBody
    public String test4(){
        System.out.println("myController.test4");
        return "aa";
    }
    @PutMapping("/test5")
    @ResponseBody
    public String test5(){
        System.out.println("myController.test5");
        return "aa";
    }
}
